package com.hhq.usercenter.controller;

import com.hhq.common.domain.vo.CommonResultVO;
import com.hhq.common.domain.vo.PageVO;
import com.hhq.usercenter.domain.vo.UserReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.hhq.common.annotation.ApiLog;
import com.hhq.usercenter.domain.vo.UserVO;

/**
 * <p>Description: some description </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/1/5 15:51
 */
@RestController
@RequestMapping("/user")
@Slf4j
@Api(tags = "用户相关接口")
public class UserController {


    /**
     * 分页查询用户列表
     *
     * @param req
     * @return
     */
    @ApiOperation(value = "分页查询用户列表", notes = "分页查询用户列表")
    @PostMapping("/queryByPage")
    @ApiLog
    public CommonResultVO<PageVO<UserVO>> queryByPage(@Validated @RequestBody UserReq req) {
        return CommonResultVO.ok();
    }
}
